package com.Cychat.commons.entity.pojo;


import java.math.BigDecimal;
import java.util.Date;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.IdType;

@Data
@TableName("order_detail")
public class OrderDetail {
    @Schema(description="详情ID")
    @TableId(value = "detail_id", type = IdType.AUTO)
    private Integer detailId;
    @Schema(description="订单编号")
    private String orderId;
    @Schema(description="商品ID")
    private Integer productId;
    @Schema(description="商品名称")
    private String productName;
    @Schema(description="商品主图URL")
    private String productImage;
    @Schema(description="单价")
    private BigDecimal unitPrice;
    @Schema(description="购买数量")
    private Integer quantity;
    @Schema(description="小计金额")
    private BigDecimal subtotal;
    @Schema(description="创建时间")
    private Date createTime;
}